package com.java83.controller;

import com.java83.domain.LzhServiceLog;
import com.java83.service.LzhServiceLogService;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.log.annotation.Log;
import com.ruoyi.common.log.enums.BusinessType;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import org.apache.ibatis.annotations.ResultMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author lzh
 * @Description
 * @Date 2022/2/21 20:06
 */
@RestController
@RequestMapping("/people")
public class PeopleController {
    @Autowired
    private LzhServiceLogService lzhServiceLogService;
    /**
     * 新增服务日志
     */
//    @RequiresPermissions("lzh_service:log:add")
//    @Log(title = "服务日志", businessType = BusinessType.INSERT)
//    @PostMapping
//    public AjaxResult add(@RequestBody LzhServiceLog lzhServiceLog)
//    {
//        int id = lzhServiceLogService.insertLzhServiceLog(lzhServiceLog);
//        lzhServiceLog.setId((long)id);
//        peopleService.send(id,lzhServiceLog);
//        lzhServiceLog.setStatus("申请阶段");
//        return toAjax(id);
//    }

}
